//
// Created by Administrator on 2022-11-29.
//

#ifndef OPENGLDEMO_CCRENDER_H
#define OPENGLDEMO_CCRENDER_H

#include "CCTexture.h"
#include "CCOpenGLShader.h"
#include "CCOpenGLVAO.h"
#include "CCOpenGLBuffer.h"

class CCRender{
public:
    CCRender();
    ~CCRender();
    //旋转角度
    float m_angle =0.0f;
    //变换的值
    float u_value = 0.0f;
    CCTexture ccTexture;
    CCOpenGLShader ccOpenGlShader;
    CCOpenGLVAO          ccVAO;
    CCOpenGLBuffer*       ccVBO;
    CCOpenGLBuffer*       ccEBO;
    void initGL();
    void paintGL();
    void resizeGL(int width,int height);
    void drawShaderAnim();
    void setupRenderingObject();
    void release();
};


#endif //OPENGLDEMO_CCRENDER_H
